
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Machinemanagement 分页列表
*/
export function getMachinemanagementPagination(data: any) {
  return axios.get(`${context}/machinemanagement/pagination`, { params: data });
}


/**
 * 获取 Machinemanagement 所有数据
*/
export function getMachinemanagementAllList(data: any) {
  return axios.get(`${context}/machinemanagement/all`, { params: data });
}


/**
 * 获取 Machinemanagement 详情
*/
export function getMachinemanagementDetailById(id: any) {
  return axios.get(`${context}/machinemanagement/${id}`, { params:{id} });
}


/**
 * 新增 Machinemanagement
*/
export function addMachinemanagement(data: any) {
  return axios.post(`${context}/machinemanagement`, data);
}

/**
 * 修改 Machinemanagement
*/
export function updateMachinemanagement(data: any) {
  return axios.put(`${context}/machinemanagement`, data);
}

/**
 * 删除 Machinemanagement
*/
export function batchRemoveMachinemanagement(data: any) {
  return axios.post(`${context}/machinemanagement/batchRemove`, data);
}

    